package com.its.oa.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Asset entity. @author MyEclipse Persistence Tools
 */

public class Asset implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// Fields

	private Integer id;
	private AssetCategory assetCategory;
	private String code;
	private String name;
	private String brand;
	private String model;
	private Double price;
	private String provide;
	private String phone;
	private String status;
	private Timestamp indate;
	private Boolean isconsume;
	private Set<InoutStore> inoutStores = new HashSet<InoutStore>(0);
	private Set<Repair> repairs = new HashSet<Repair>(0);

	// Constructors

	/** default constructor */
	public Asset() {
	}

	/** full constructor */
	public Asset(AssetCategory assetCategory, String code, String name,
			String brand, String model, Double price, String provide,
			String phone, String status, Timestamp indate, Boolean isconsume,
			Set<InoutStore> inoutStores, Set<Repair> repairs) {
		this.assetCategory = assetCategory;
		this.code = code;
		this.name = name;
		this.brand = brand;
		this.model = model;
		this.price = price;
		this.provide = provide;
		this.phone = phone;
		this.status = status;
		this.indate = indate;
		this.isconsume = isconsume;
		this.inoutStores = inoutStores;
		this.repairs = repairs;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public AssetCategory getAssetCategory() {
		return this.assetCategory;
	}

	public void setAssetCategory(AssetCategory assetCategory) {
		this.assetCategory = assetCategory;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBrand() {
		return this.brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getModel() {
		return this.model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getProvide() {
		return this.provide;
	}

	public void setProvide(String provide) {
		this.provide = provide;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Timestamp getIndate() {
		return this.indate;
	}

	public void setIndate(Timestamp indate) {
		this.indate = indate;
	}

	public Boolean getIsconsume() {
		return this.isconsume;
	}

	public void setIsconsume(Boolean isconsume) {
		this.isconsume = isconsume;
	}

	public Set<InoutStore> getInoutStores() {
		return this.inoutStores;
	}

	public void setInoutStores(Set<InoutStore> inoutStores) {
		this.inoutStores = inoutStores;
	}

	public Set<Repair> getRepairs() {
		return this.repairs;
	}

	public void setRepairs(Set<Repair> repairs) {
		this.repairs = repairs;
	}

}